package net.wsfcp.android.event;

import net.wsfcp.android.bean.resultbean.AddressBean;

/**
 * Created by Shaoboyang on 2018/12/14.
 * 地址变动
 */

public class AddressEvent {

    private int code;// 0删除 1新增  2修改   3手动创建   10只是修改数量
    private int num;//已创建的地址总数
    public AddressBean addressBean;

    public AddressBean getAddressBean() {
        return addressBean;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public void setAddressBean(AddressBean addressBean) {
        this.addressBean = addressBean;
    }

    public AddressEvent() {
        this.code = 0;
    }

    public AddressEvent(int code) {
        this.code = code;

    }

    public AddressEvent(int code, int num) {
        this.code = code;
        this.num = num;
    }


    public AddressEvent(int code, AddressBean addressBean) {
        this.code = code;
        this.addressBean = addressBean;

    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }


}
